#ifndef CPOINT_H
#define CPOINT_H


class CPoint
{
public:
	CPoint();
	CPoint(double, double, double);
	CPoint(const CPoint &);

	void		Add(CPoint *);
	void		Add(CPoint);

	double		Distance(CPoint *);
	double		Distance(CPoint);

	void		operator=(CPoint);
	CPoint		crossProduct(CPoint);
	void		normalize();

	void		Div(double);
	void		Mult(double);

	double		GetX();
	double		GetY();
	double		GetZ();

	void		SetX (double);
	void		SetY (double);
	void		SetZ (double);
	void		Set (double, double, double);

	bool		operator==(const CPoint);
	bool		operator!=(CPoint);
protected:
	double		x;
	double		y;
	double		z;
};

#endif // CPOINT_H
